package com.ruoyi.comprehensive.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.comprehensive.mapper.PreventionEnclosureMapper;
import com.ruoyi.comprehensive.domain.PreventionEnclosure;
import com.ruoyi.comprehensive.service.IPreventionEnclosureService;

/**
 * 通防管理：附件信息Service业务层处理
 * 
 * @author hcc
 * @date 2023-12-14
 */
@Service
public class PreventionEnclosureServiceImpl implements IPreventionEnclosureService 
{
    @Autowired
    private PreventionEnclosureMapper preventionEnclosureMapper;

    /**
     * 查询通防管理：附件信息
     * 
     * @param id 通防管理：附件信息主键
     * @return 通防管理：附件信息
     */
    @Override
    public PreventionEnclosure selectPreventionEnclosureById(String id)
    {
        return preventionEnclosureMapper.selectPreventionEnclosureById(id);
    }

    /**
     * 查询通防管理：附件信息列表
     * 
     * @param preventionEnclosure 通防管理：附件信息
     * @return 通防管理：附件信息
     */
    @Override
    public List<PreventionEnclosure> selectPreventionEnclosureList(PreventionEnclosure preventionEnclosure)
    {
        return preventionEnclosureMapper.selectPreventionEnclosureList(preventionEnclosure);
    }

    /**
     * 新增通防管理：附件信息
     * 
     * @param preventionEnclosure 通防管理：附件信息
     * @return 结果
     */
    @Override
    public int insertPreventionEnclosure(PreventionEnclosure preventionEnclosure)
    {
        return preventionEnclosureMapper.insertPreventionEnclosure(preventionEnclosure);
    }

    /**
     * 修改通防管理：附件信息
     * 
     * @param preventionEnclosure 通防管理：附件信息
     * @return 结果
     */
    @Override
    public int updatePreventionEnclosure(PreventionEnclosure preventionEnclosure)
    {
        return preventionEnclosureMapper.updatePreventionEnclosure(preventionEnclosure);
    }

    /**
     * 批量删除通防管理：附件信息
     * 
     * @param ids 需要删除的通防管理：附件信息主键
     * @return 结果
     */
    @Override
    public int deletePreventionEnclosureByIds(String[] ids)
    {
        return preventionEnclosureMapper.deletePreventionEnclosureByIds(ids);
    }

    /**
     * 删除通防管理：附件信息信息
     * 
     * @param id 通防管理：附件信息主键
     * @return 结果
     */
    @Override
    public int deletePreventionEnclosureById(String id)
    {
        return preventionEnclosureMapper.deletePreventionEnclosureById(id);
    }

}
